#include <stdio.h>
int main(int argc, char const *argv[])
{
    int i = 0, sum = 0;
step:
    i++;
    // printf("i=%d\n", i);
    sum = sum + i;
    if (i<100)//满足条件再执行goto语句
    goto step;
    printf("sum=%d",sum);
    return 0;
}
